<template>
  <div class="container">
    <input type="text" v-model="value"
    @input="onInput"/>
  </div>
</template>

<script>
export default {
  data(){
    return{
      value:this.content
    }
  },
  methods:{
    onInput(){
      this.$emit("inputChange",this.value)
    }
  }
}
</script>

<style scoped>
.container
{
  width: 100%;
  height: 40px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.container input
{
  width: 80%;
  height: 40px;
  border: 1px solid black;
}
</style>